package my.study.java.lang.annotation.Annotation.examples.example2;

@DBTable(name="user")
public class User {
	@Constraints(primaryKey=true)
	@SqlType(type=Type.INT,size=10)
	private int id;
	@SqlType(type=Type.VARCHAR,size=10)
	private String name;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
}
